import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './static/css/common.css'
import './static/font/iconfont.css'
import {Provider} from 'react-redux'
import store from './store/store.js'
// console.log(localStorage.getItem('scity'))
//从本地获取存储的城市，设置到redux中
const curcity =localStorage.getItem('scity')
const user = localStorage.getItem('yijuuser')
if(curcity){
  store.dispatch({type:'SETCITY',playload:curcity})
}
if(user){
  store.dispatch({type:'SETUSER',playload:user})
}
ReactDOM.render(
  // <React.StrictMode>
  <Provider store={store}>
    <App />
  </Provider>
   
  // </React.StrictMode>,
  ,
  document.getElementById('root')
);